package com.example.entity;

import javax.validation.Valid;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;
import java.util.List;

/**
 * @author wzw
 */
public class ReadMeConfig {

    private List<Object> vars;

    private String name;

    private String version;

    private String desc;

    private Object dataSoure;

    private List<Task> taskInstances;

    @NotNull
    @Size(min = 1)
    @Valid
    private List<TaskConfig> tasks;

    public List<Object> getVars() {
        return vars;
    }

    public void setVars(List<Object> vars) {
        this.vars = vars;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getVersion() {
        return version;
    }

    public void setVersion(String version) {
        this.version = version;
    }

    public String getDesc() {
        return desc;
    }

    public void setDesc(String desc) {
        this.desc = desc;
    }

    public List<Task> getTaskInstances() {
        return taskInstances;
    }

    public void setTaskInstances(List<Task> taskInstances) {
        this.taskInstances = taskInstances;
    }

    public List<TaskConfig> getTasks() {
        return tasks;
    }

    public void setTasks(List<TaskConfig> tasks) {
        this.tasks = tasks;
    }

    public Object getDataSoure() {
        return dataSoure;
    }

    public void setDataSoure(Object dataSoure) {
        this.dataSoure = dataSoure;
    }
}
